#include<stdio.h>

int main()
{
	char c;
	printf("Please input some character\n");
	
	int letters=0,space=0,digit=0,othere=0;
	int i=0;
	while((c=getchar())!='\n')
	{
		if(c>='a'&&c<='z' || c>='A'&&c<='Z' )
		{
			letters++;
		}
		else if(c>='0'&&c<='z')
		{
			digit++;
		}
		else if(c==' ')
		{
			space++;
		}
		else
		{
			othere++;
		}
		i++;
	}
	printf("char=%d space=%d digit=%d othere=%d\n",letters,space,digit,othere);

	return 0;
}
